﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SparePartApplyConfirmApplication.aspx.cs" Inherits="WXYW.SparePartApplyConfirmApplication" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    备件申请服务-申请->待审批
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" align="right">
        <img src="image/operateicon/back_back.gif" />
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/SparePartApplyListNeedApprove.aspx">返回</asp:HyperLink>
        <img src="image/operateicon/docview.gif" />
        <asp:LinkButton ID="searchLinkButton" runat="server" OnClick="searchLinkButton_Click">查询</asp:LinkButton>
        <img src="image/operateicon/right.gif" />
        <asp:LinkButton ID="agreeLinkButton" runat="server" OnClick="agreeLinkButton_Click">同意</asp:LinkButton>
        <img src="image/operateicon/docdelete.gif" />
        <asp:LinkButton ID="disAgreeLinkButton" runat="server" OnClick="disAgreeLinkButton_Click">不同意</asp:LinkButton>
    </div>
    <table class="tableList" width="100%" border="1" style="border-color: #888888">
        <tr>
            <th>
                RMA#
            </th>
            <th>
                产品型号
            </th>
            <th>
                产品序列号
            </th>
            <th>
                版本号
            </th>
            <th>
                故障类型
            </th>
            <th>
                故障现象
            </th>
            <th>
                外观及附件
            </th>
            <th>
                保修性质
            </th>
            <th>
                检测结果
            </th>
            <th>
                申请缘由
            </th>
            <th>
                申请人
            </th>
            <th>
                备注
            </th>
        </tr>
        <tr>
            <td>
                <asp:Label ID="applicationCodeLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="productTypeLabel" runat="server" CssClass="NOBorderTxtBox" TextMode="MultiLine"
                    Rows="1" Text="" ReadOnly="true" Columns="10"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="serialNumberLabel" runat="server" Text="" CssClass="NOBorderTxtBox"
                    TextMode="MultiLine" Rows="1" Columns="10"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="versionLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="problemTypeLabel" runat="server" Text="" CssClass="NOBorderTxtBox"
                    TextMode="MultiLine" Rows="1" Columns="10"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="decriptionLabel" runat="server" Text="" CssClass="NOBorderTxtBox"
                    TextMode="MultiLine" Rows="1" Columns="10"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="appearanceLabel" runat="server" Text="" CssClass="NOBorderTxtBox"
                    TextMode="MultiLine" Rows="1" Columns="10"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="repairTypeLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="examineResultLabel" runat="server" Text="" CssClass="NOBorderTxtBox"
                    TextMode="MultiLine" Rows="1" Columns="10"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="Reason" runat="server" Text="" CssClass="NOBorderTxtBox" Rows="1"
                    Columns="10"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="applicant" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="remarkDropDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="remarkDropDownList_SelectedIndexChanged"
                    Style="height: 22px">
                    <asp:ListItem Text="整机"></asp:ListItem>
                    <asp:ListItem Text="电源"></asp:ListItem>
                    <asp:ListItem Text="PCBA"></asp:ListItem>
                    <asp:ListItem Text="其它型号"></asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="otherTextBox" runat="server" Visible="false"></asp:TextBox>
            </td>
        </tr>
    </table>
    <asp:ModalPopupExtender ID="searchModalPopupExtender" runat="server" BackgroundCssClass="modalBackground"
        TargetControlID="hiddenTargetControlForModalPopup" PopupControlID="searchPanel">
    </asp:ModalPopupExtender>
    <asp:Panel ID="searchPanel" runat="server" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" Width="700px">
        <div class="box-header" id="Div1">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2 align="center">
                备件查询</h2>
        </div>
        <asp:GridView ID="searchRelultGridView" Width="100%" runat="server" AutoGenerateColumns="false"
            EmptyDataText="没有备件" DataKeyNames="ID" OnRowDataBound="searchRelultGridView_RowDataBound">
            <Columns>
                <asp:BoundField HeaderText="产品料号" DataField="MaterialNO" />
                <asp:BoundField HeaderText="产品型号" DataField="ModelNumber" />
                <asp:BoundField HeaderText="版本号" DataField="VersionNumber" />
                <asp:BoundField HeaderText="数量" DataField="Count" />
                <asp:BoundField HeaderText="良品" DataField="GoodCount" />
                <asp:BoundField HeaderText="非良品" DataField="BadCount" />
                <asp:TemplateField HeaderText="库存地">
                    <ItemTemplate>
                        <%#Eval("ServiceStation.Name")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="批准数量">
                    <ItemTemplate>
                        <asp:TextBox ID="countTextBox" Width="40px" runat="server" Text="1"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <img src="image/operateicon/check.gif" alt="" />
                        <asp:LinkButton ID="selectLinkButton" runat="server" OnClick="selectLinkButton_Click"
                            CommandArgument='<%#Eval("ModelNumber") %>'>确定</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <div align="center">
            <img src="image/operateicon/docdelete.gif" alt="" />
            <asp:LinkButton ID="LinkButton2" runat="server">关闭</asp:LinkButton>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
    <%--for disagree--%>
    <asp:ModalPopupExtender ID="disagreeModalPopupExtender" PopupControlID="disagreePanel"
        BackgroundCssClass="modalBackground" TargetControlID="hiddenTargetControlForModalPopup"
        runat="server">
    </asp:ModalPopupExtender>
    <asp:Panel ID="disagreePanel" runat="server" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" Width="500px">
        <!-- Header -->
        <div class="box-header" id="dragBar">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2 align="center">
                不同意原因</h2>
        </div>
        <table width="100%">
            <tr>
                <td style="width: 15%">
                    RMA#:
                </td>
                <td style="width: 35%; border-bottom: 1px solid Gray;">
                    <asp:Label ID="rmacodeLabel" runat="server" Text=""></asp:Label>
                </td>
                <td style="width: 15%">
                    产品序号：
                </td>
                <td style="width: 35%; border-bottom: 1px solid Gray;">
                    <asp:Label ID="serialLabel" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    请输入原因和解决方案
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:TextBox ID="reasonAndSolutinTextBox" runat="server" Width="95%" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
        </table>
        <div align="center">
            <img src="image/operateicon/check.gif" alt="" />
            <asp:LinkButton ID="saveLinkButton" runat="server" OnClick="saveLinkButton_Click">保存</asp:LinkButton>
            <img src="image/operateicon/docdelete.gif" alt="" />
            <asp:LinkButton ID="LinkButton1" runat="server">关闭</asp:LinkButton>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
    <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none" />
    <asp:HiddenField ID="hfProductTypeID" runat="server" />
</asp:Content>
